using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(menuName = "RPG Setup/Dialogue Data/New Dialogue Line Data", fileName = "Dialogue Line - ")]
public class DialogueLineSO : ScriptableObject
{
    [Header("Dialogue Info")]
    public string dialogueGroupName;
    public DialogueSpeakerSO speaker;

    [Header("Text Options")]
    [Header("玩家的回复选择")][TextArea] public string choice;
    [Header("对话的内容,可随机")][TextArea] public string[] textLine;
    [Header("对话对象的回复")][TextArea] public string[] actionLine;
    [Header("玩家的回复选择的列表")]public DialogueLineSO[] choiceLines;

    [Header("Dialogue Type")]
    public DialogueActionType dialogueType;

    public string GetRandomLine() => textLine[Random.Range(0, textLine.Length)];
}
